<?php 
namespace app\model;
use think\Model;

class ImportTask extends Model
{	

	public static function getStatusCn($key){
        $list = ['未完成','已完成',-1=>'已取消'];
        return $list[$key];
    }

    public static function getStatusList(){
        $list = ['未完成','已完成',-1=>'已取消'];
        return $list;
    }

    public static function getTypeCn($key){
        $list = ['order'=>'询价导入','oform'=>'委估信息','oform_fields'=>'委估字段','oform_images'=>'委估附件','survey'=>'查勘信息'];
        return $list[$key];
    }

    public static function getTypeList(){
        $list = ['order'=>'询价导入','oform'=>'委估信息','oform_fields'=>'委估字段','oform_images'=>'委估附件','survey'=>'查勘信息'];
        return $list;
    }

    public static function getImportTypeCn($key){
        $list = ['add'=>'新增','edit'=>'覆盖'];
        return $list[$key];
    }
	
}


 ?>